﻿
<%@ Page Language="C#" Theme="PAT_Theme" MasterPageFile="~/master/PAT.master" AutoEventWireup="true"  CodeFile="PatCitaTaller.aspx.cs" Inherits="PatCitaTaller" Title="PatCitaTaller List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="subHeaderContent" Runat="Server">Pat Cita Taller List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="PatCitaTallerDataSource"
				DataKeyNames="IdCita"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_PatCitaTaller.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<data:HyperLinkField HeaderText="Id Taller" DataNavigateUrlFormatString="PatTallerEdit.aspx?IdTaller={0}" DataNavigateUrlFields="IdTaller" DataContainer="IdTallerSource" DataTextField="DescripcionTaller" />
				<asp:BoundField DataField="FechaCita" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Fecha Cita" SortExpression="[FECHA_CITA]"  />
				<asp:BoundField DataField="HoraCita" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Hora Cita" SortExpression="[HORA_CITA]"  />
				<data:HyperLinkField HeaderText="Id Recepcionista Asignado" DataNavigateUrlFormatString="PatEmpleadoEdit.aspx?IdEmpleado={0}" DataNavigateUrlFields="IdEmpleado" DataContainer="IdRecepcionistaAsignadoSource" DataTextField="IdTipoIdentificacion" />
				<data:HyperLinkField HeaderText="Id Catalogo" DataNavigateUrlFormatString="PatCatalogoVehiculoEdit.aspx?IdCatalogo={0}" DataNavigateUrlFields="IdCatalogo" DataContainer="IdCatalogoSource" DataTextField="CodigoInternoCatalogo" />
				<asp:BoundField DataField="PlacaVehiculo" HeaderText="Placa Vehiculo" SortExpression="[PLACA_VEHICULO]"  />
				<asp:BoundField DataField="NombreCliente" HeaderText="Nombre Cliente" SortExpression="[NOMBRE_CLIENTE]"  />
				<asp:BoundField DataField="TelefonoFijoCliente" HeaderText="Telefono Fijo Cliente" SortExpression="[TELEFONO_FIJO_CLIENTE]"  />
				<asp:BoundField DataField="TelefonoMovilCliente" HeaderText="Telefono Movil Cliente" SortExpression="[TELEFONO_MOVIL_CLIENTE]"  />
				<asp:BoundField DataField="EMailCliente" HeaderText="E Mail Cliente" SortExpression="[E_MAIL_CLIENTE]"  />
				<data:HyperLinkField HeaderText="Id Kit" DataNavigateUrlFormatString="PatKitEdit.aspx?IdKit={0}" DataNavigateUrlFields="IdKit" DataContainer="IdKitSource" DataTextField="DescripcionKit" />
				<data:HyperLinkField HeaderText="Id Estado Cita" DataNavigateUrlFormatString="PatEstadoCitaEdit.aspx?IdEstadoCita={0}" DataNavigateUrlFields="IdEstadoCita" DataContainer="IdEstadoCitaSource" DataTextField="DescripcionEstadoCita" />
				<asp:BoundField DataField="Observaciones" HeaderText="Observaciones" SortExpression="[OBSERVACIONES]"  />
				<data:BoundRadioButtonField DataField="Activo" HeaderText="Activo" SortExpression="[ACTIVO]"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No PatCitaTaller Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnPatCitaTaller" OnClientClick="javascript:location.href='PatCitaTallerEdit.aspx'; return false;" Text="Agregar Nuevo "></asp:Button>
		<data:PatCitaTallerDataSource ID="PatCitaTallerDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
			EnableDeepLoad="True"
			>
			<DeepLoadProperties Method="IncludeChildren" Recursive="False">
	            <Types>
					<data:PatCitaTallerProperty Name="PatCatalogoVehiculo"/> 
					<data:PatCitaTallerProperty Name="PatEmpleado"/> 
					<data:PatCitaTallerProperty Name="PatEstadoCita"/> 
					<data:PatCitaTallerProperty Name="PatKit"/> 
					<data:PatCitaTallerProperty Name="PatTaller"/> 
				</Types>
			</DeepLoadProperties>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:PatCitaTallerDataSource>
	    		
</asp:Content>



